package com.xinyue.game.common.config;

import javax.annotation.PostConstruct;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "xinyue.game.common.config")
public class GameServerCommonConfig {
	private Logger logger = LoggerFactory.getLogger(GameServerCommonConfig.class);
	private int localServerId;
	private int serviceId;
	
	@PostConstruct
	public void init() {
		logger.info("初始化共公配置成功：{}", this);
	}

	

	@Override
	public String toString() {
		return "GameServerCommonConfig [localServerId=" + localServerId + ", serviceId="
				+ serviceId + "]";
	}



	public int getLocalServerId() {
		return localServerId;
	}

	public void setLocalServerId(int localServerId) {
		this.localServerId = localServerId;
	}

	public int getServiceId() {
		return serviceId;
	}

	public void setServiceId(int serviceId) {
		this.serviceId = serviceId;
	}

	

}
